import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("sys_macro",{schema:"nest-mall" } )
export class SysMacro {

    @PrimaryGeneratedColumn({
        type:"bigint", 
        name:"id"
        })
    id:string;
        

    @Column("bigint",{ 
        nullable:true,
        name:"parent_id"
        })
    parentId:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:50,
        name:"name"
        })
    name:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:2000,
        name:"value"
        })
    value:string | null;
        

    @Column("tinyint",{ 
        nullable:true,
        default: () => "'1'",
        name:"status"
        })
    status:number | null;
        

    @Column("tinyint",{ 
        nullable:true,
        name:"type"
        })
    type:number | null;
        

    @Column("int",{ 
        nullable:true,
        name:"order_num"
        })
    orderNum:number | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:500,
        name:"remark"
        })
    remark:string | null;
        

    @Column("date",{ 
        nullable:true,
        name:"gmt_create"
        })
    gmtCreate:string | null;
        

    @Column("date",{ 
        nullable:true,
        name:"gmt_modified"
        })
    gmtModified:string | null;
        
}
